<template>
  <div>
    <div class="fixHead">
      <div class="title">
        <span class="iconfont icon-jiantou" @click="$router.go(-1)"></span>
        <span class="icon-home" @click="$router.push('/')"></span>
        <h1>我的收藏</h1>
      </div>
      <div style="height: 0.88rem;"></div>
    </div>
    <div class="art">
      <div class="title">共{{ list.length }}篇</div>
      <div class="list" v-if="list.length > 0">
        <div
          class="item"
          v-for="(item, index) in list"
          :key="index"
          @click="toDetail(item)"
        >
          <div class="cont">
            <div class="line1">{{ item.name }}</div>
            <div class="line2">
              <div class="left">
                <span v-if="item.shequn">{{ item.shequn }}</span>
              </div>
              <div class="right">
                <img src="../../assets/images/adver.jpg" />
                <span>麻小云</span>
              </div>
            </div>
          </div>
          <img class="img" src="../../assets/images/adver.jpg" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  components: {},
  props: {},
  data: function() {
    return {
      list: [
        {
          id: 100,
          name:
            "标题标题标题标题标题标题标题标题标题标题标题题标题标题题标题标题题标题标题题标题标题",
          shequn: "蚂蚁金服小马社群 "
        },
        {
          id: 101,
          name:
            "标题标题标题标题标题标题标题标题标题标题标题题标题标题题标题标题题标题标题题标题标题",
          shequn: ""
        }
      ]
    };
  },
  mounted: function() {},
  methods: {
    toDetail(item) {
      this.$router.push({
        path: "/com/article",
        query: {
          id: item.id
        }
      });
    }
  }
};
</script>

<style scoped></style>
